package org.dbstar.scheduler.beans;

/**
 * 执行命令行的Job定义
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-3-21
 */
public class CmdJobConf extends JobConf {
	private static final long serialVersionUID = -5649967845606189687L;

	public static final String JOB_TYPE = "cmd";

	private String cmd;

	public final String getCmd() {
		return cmd;
	}

	public final void setCmd(String cmd) {
		this.cmd = cmd;
	}

	@Override
	public final String getType() {
		return JOB_TYPE;
	}

	@Override
	public final String getContent() {
		return getCmd();
	}

	@Override
	public final void setContent(String content) {
		setCmd(content);
	}
}
